package com.qianyu.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qianyu.project.entity.TenderBiddingHistory;
import com.qianyu.project.utils.Result;

import java.util.Map;

/**
 * @author gs
 * @date create in 2021/2/3 10:29
 */
public interface ITenderBiddingHistroyService extends IService<TenderBiddingHistory> {

    /**
     * description: 保存的方法 <br/>
     * author: gs   <br/>
     * date: 2021/2/3 <br/>
     * params: [tenderBiddingHistory] <br/>
     * return: void
     */
    void submit(TenderBiddingHistory tenderBiddingHistory);

    /**
     * description:看是否存在 <br/>
     * author: gs   <br/>
     * date: 2021/2/3 <br/>
     * params: [tenderId] <br/>
     * return: com.qianyu.project.entity.TenderBiddingHistory
     */
    TenderBiddingHistory isExist(String tenderId);

    /**
     * description: 更新的方法 <br/>
     * author: gs   <br/>
     * date: 2021/2/3 <br/>
     * params: [tenderBiddingHistory] <br/>
     * return: void
     */
    void update(TenderBiddingHistory tenderBiddingHistory);

    /**
     * description: 分页数据 <br/>
     * author: gs   <br/>
     * date: 2021/2/3 <br/>
     * params: [params] <br/>
     * return: com.baomidou.mybatisplus.core.metadata.IPage<com.qianyu.project.entity.TenderBiddingHistory>
     */
    IPage<TenderBiddingHistory> getPageList(Map<String, String> params);

    /**
     * description: 选择合作的方法 <br/>
     * author: gs   <br/>
     * date: 2021/2/3 <br/>
     * params: [tenderBiddingHistory] <br/>
     * return: void
     */
    void cooperation(TenderBiddingHistory tenderBiddingHistory);
}
